package com.atguigu.spzx.common.interceptor;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Component
public class SpzxUserInfoMvcConfigurer implements WebMvcConfigurer {
    @Resource
    SpzxUserInfoInterceptor spzxUserInfoInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(spzxUserInfoInterceptor)
                .addPathPatterns("/api/**/auth/**");
    }
}
